# $Id$
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xclock
pkgver=1.0.7
pkgrel=2
pkgdesc="X clock"
arch=(x86_64)
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('libx11' 'libxmu' 'libxaw' 'libxrender' 'libxft' 'libxkbfile')
makedepends=('xorg-util-macros')
source=(https://xorg.freedesktop.org/archive/individual/app/xclock-${pkgver}.tar.bz2)
sha512sums=('56689bdae6c83e9e1da5c4c48cf1136ca8b4f45b177f27bc1deeb24758e2c180035b639e8df72e3ebf32dc301bceb59118309fcce2ffab54e5abe9bfa645e607')

build() {
  cd "${srcdir}/xclock-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/xclock-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
